package lib.http;

extern class Request {
	public var response:Response;
	public var value:String;
	public var query:Dynamic;

	/**
	 * 请求方法
	 */
	public var method:String;
	public var form:Dynamic;
	public var data:String;
	public var queryString:String;
}

extern class Response {
	/**
		*阿萨德
		* @param	head 阿萨德
		* @param	value 阿萨德
	 */
	public function addHeader(head:String, value:String):Void;

	/**
	 * 写出
	 * @param str 内容
	 */
	public function write(str:String):Void;
}

@:enum
abstract Method(String) to String {
	var GET = "GET";
	var POST = "POST";
}
